export default function updateFile(imageUrl,uploadUrl="",name="file",header={}) {
	return new Promise((resolve, reject) => {
		uni.uploadFile({
			url: uploadUrl,
			method: "POST",
			header: header,
			filePath: imageUrl,
			name: 'file',
			success: (response) => {
				let result = JSON.parse(response.data)
				resolve(result)
			},
			fail() {
				uni.showToast({
					title: "图片上传失败",
					icon: "none"
				})
				reject()
				

			}
		})
	})

}
